package com.wyh.domain.vo.groupOne.threemeterTree.manageTableThreemeter;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Builder
@Api("前端进行查询时传过来的值")
@AllArgsConstructor
@NoArgsConstructor
@Data

public class ThreemeterQueryCondition {
    @ApiModelProperty("当前页")
    @Builder.Default
    private Integer pageNum = 1;
    @ApiModelProperty("每页条数")
    @Builder.Default
    private Integer pageSize = 10;
    @ApiModelProperty(value = "当前处于哪个节点下，给出该节点的unique_id",required = true)
    @NotNull(message = "未选中任意一节点")
    private Integer unique_id;

    @ApiModelProperty("三表性质，默认为-1")
    private Integer nature = -1;

    @ApiModelProperty("三表编号")
    private String number;

    @ApiModelProperty("最后修改时间，左区间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private LocalDateTime minTime;

    @ApiModelProperty("最后修改时间，右区间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private LocalDateTime maxTime;

    @ApiModelProperty("三表名称")
    private String name;

    @ApiModelProperty("最后修改人名称")
    private String updateUser;

//    @ApiModelProperty("当前页")
//   private Integer pageNum;
//
//    @ApiModelProperty("每页条数")
//   private Integer pageSize;

}
